package ink.carnation.imtalk.service;

import ink.carnation.imtalk.model.po.UserPo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UserService {
    UserPo getUserById(Integer userId);

    int insertUser(UserPo userPo);

    UserPo getUserByEmail(String email);

    void saveTokenToRedis(HttpServletResponse response, Integer userId);

    Boolean layout(HttpServletRequest request);

    Boolean isRedisTokenExist(HttpServletResponse response, Integer userId);

    Boolean resetPassword(String email, String newPassword);

    Boolean isBloomFilterExist(Integer userId);
}
